package demo;


public class TestThread {

    public static void main(String[] args) {
        OneThread oneThread = new OneThread();
        Thread thread = new Thread(oneThread);
        thread.start();

    }

    static class OneThread implements Runnable{

        public void run() {
            System.out.println("XXXX");
        }
    }
}
